package cn.edu.xmu.orderpayment.payment.microservice.service;

import cn.edu.xmu.orderpayment.payment.microservice.returnobj.AliPayReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Yujie Lin
 * @date 2021/12/12 18:46
 */
@FeignClient("alipay-service")
public interface AliPayService {
    @PostMapping("internal/alipay/gateway.do")
    AliPayReturnObject gatewayDo(@RequestParam(required = false) String app_id ,
                                 @RequestParam(required = true) String method ,
                                 @RequestParam(required = false) String format ,
                                 @RequestParam(required = false) String charset  ,
                                 @RequestParam(required = false) String sign_type  ,
                                 @RequestParam(required = false) String sign  ,
                                 @RequestParam(required = false) String timestamp  ,
                                 @RequestParam(required = false) String notify_url   ,
                                 @RequestParam(required = true) String biz_content
    );
}
